@searchWidth: 35%;
@searchHeight: 36px;
@searchSuggestionHeight: 50%;
@searchTop: 20px;
@searchInputHeight: 36px;

.addrhelper-text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addrhelper-tool-manual {
  padding: 10px;

  .title {
    margin-bottom: 4px;
    font-size: 15px;
    color: #1b202c;
    line-height: 22px;
    font-weight: 600;
  }

  .tip {
    margin-bottom: 5px;
    color: #999999;
    font-size: 14px;

    .strong {
      font-weight: 600;
    }
  }
}

.addrhelper-getpoint {
  height: 100%;
  width: 100%;
  display: flex;

  .addrhelper-cursor-point {
    cursor: url(""), auto;
  }

  .addrhelper-getpoint-map {
    width: 75%;
    position: relative;

    #addrhelper-map-container {
      height: 100%;
      width: 100%;
    }

    .addrhelper-getpoint-search {
      display: flex;
      position: absolute;
      top: @searchTop;
      left: 20px;
      width: @searchWidth;
      height: @searchHeight;
      border: 1px solid #F3F3F3;
      box-sizing: border-box;
      border-radius: 5px;
      line-height: 36px;
      background-color: #FFFFFF;
      z-index: 9999;

      &:hover {
        border: 1px solid #CCCCCC;
      }

      input {
        width: 100%;
        flex: 1;
        padding-left: 8px;
        border: none;
        outline: none;
        border-radius: 5px;
      }
    }

    .addrhelper-search-suggestion {
      width: @searchWidth;
      max-height: @searchSuggestionHeight;
      overflow-y: auto;
      box-sizing: border-box;
      position: absolute;
      top: 56px;
      left: @searchTop;
      background-color: #FFFFFF;
      z-index: 9999;

      &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        background-color: #F5F5F5;
      }

      &::-webkit-scrollbar-thumb {
        background-color: #DDDEE0;
        background-clip: padding-box;
        border-radius: 3px;
      }

      .addrhelper-search-show-btn {
        height: 0;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;

        img {
          height: 23px;
          width: 23px;
          transform: rotate(90deg);
        }

        span {
          opacity: .8;
          font-size: 14px;
          color: #1B202C;
          font-weight: 400;
        }
      }

      .addrhelper-search-list {
        .addrhelper-search-address {
          box-sizing: border-box;
          padding: 0 15px;

          &:hover {
            background-color: #F5F9FF;
            cursor: pointer;
          }

          .border {
            display: flex;
            align-items: center;
            box-sizing: border-box;
            padding: 10px 0;
            border-bottom: 1px solid rgba(27, 32, 44, .05);

            .index {
              height: 24px;
              width: 24px;
              background: rgba(0, 98, 255, .08);
              margin-right: 8px;
              font-size: 12px;
              color: #0062FF;
              text-align: center;
              line-height: 24px;
              font-weight: 400;
              border-radius: 50%;
            }

            .info {
              width: calc(100% - 32px);

              .title {
                font-size: 14px;
                color: #1b202c;
                line-height: 22px;
                font-weight: 600;
                margin-bottom: 4px;
                .addrhelper-text-ellipsis()
              }

              .address {
                font-size: 12px;
                color: #535B6E;
                line-height: 18px;
                font-weight: 400;
                .addrhelper-text-ellipsis()
              }
            }
          }
        }

        .addrhelper-search-address-active {
          background-color: #EBF3FF;

          .border {
            .index {
              background-color: #0062FF;
              color: #FFFFFF;
            }

            .info {
              .title,
              .address {
                color: #0062FF;
              }
            }
          }
        }
      }
    }

    .addrhelper-satellite {
      position: absolute;
      top: @searchTop;
      right: 20px;
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 85px;
      height: @searchHeight;
      font-size: 14px;
      color: #1F2226;
      background: #FFFFFF;
      box-sizing: border-box;
      border: 1px solid rgba(31, 34, 38, .1);
      box-shadow: 0 4px 10px 0 #1F222612;
      border-radius: 4px;
      cursor: pointer;

      &:hover {
        border-color: #A5A7A8;
      }

      .icon {
        background-image: url();
        background-size: 24px 24px;
        background-repeat: no-repeat;
        display: inline-block;
        width: 24px;
        height: 24px;
      }

      .icon-active {
        background-image: url();
      }
    }

    .addrhelper-satellite-active {
      background-color: #EBF3FF;
      color: #0062FF;
    }

    .addrhelper-toolbar {
      position: absolute;
      right: 20px;
      bottom: 20px;
      z-index: 9999;

      .tool {
        width: 30px;
        height: 30px;
        float: left;
        margin: 1px;
        padding: 4px;
        border-radius: 3px;
        background-size: 30px 30px;
        background-position: 4px 4px;
        background-repeat: no-repeat;
        box-shadow: 0 1px 2px 0 #e4e7ef;
        background-color: #ffffff;
        border: 1px solid #ffffff;

        &:hover {
          border-color: #789cff;
        }
      }

      .tool-active {
        border-color: #d5dff2;
        background-color: #d5dff2;
      }

      .tool-marker {
        background-image: url("");
      }

      .tool-polygon {
        background-image: url("");
      }

      .tool-circle {
        background-image: url("");
      }

      .tool-rectangle {
        background-image: url("");
      }

      .tool-ellipse {
        background-image: url("");
      }

      .tool-delete {
        background-image: url("");
      }

      .tool-split {
        background-image: url("");
      }

      .tool-union {
        background-image: url("");
      }

      .tool-manual {
        background-image: url("");
      }
    }

    .addrhelper-getpoint-tips {
      position: absolute;
      z-index: 9999;
      background-color: #484847;
      color: #FFFFFF;
      padding: 5px;
      border-radius: 3px;
      font-size: 12px;
    }
  }

  .addrhelper-getpoint-info {
    width: 25%;
    background-color: #FFFFFF;
    padding: 25px 20px;
    box-sizing: border-box;
    word-break: break-all;
    position: relative;

    .title {
      font-size: 16px;
      color: #1b202c;
      letter-spacing: 0;
      line-height: 24px;
      font-weight: 600;
      min-height: 24px;
    }

    .item {
      margin-top: 20px;

      .label {
        margin-bottom: 4px;
        font-size: 14px;
        color: #1b202c;
        letter-spacing: 0;
        line-height: 22px;
        font-weight: 600;
      }

      .input {
        padding: 0 40px 0 8px;
        min-height: 34px;
        line-height: 34px;
        background: rgba(27, 32, 44, .03);
        border: 1px solid #ced2d9;
        border-radius: 4px;
        font-size: 14px;
        color: #1b202c;
        font-weight: 400;
      }
    }

    .addrhelper-ok-btn {
      outline: none;
      border: none;
      position: absolute;
      right: 20px;
      bottom: 0;
      height: 28px;
      line-height: 28px;
      padding: 0 15px;
      border-radius: 2px;
      background-color: #1E9FFF;
      color: #FFF;
      font-weight: 400;
      cursor: pointer;

      &:hover {
        opacity: .8;
      }
    }
  }
}